//
//  Game.h
//  2048
//  游戏单例类
//  Created by 高新川 on 15/6/7.
//  Copyright (c) 2015年 高新川. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Algorithm.h"
#import "DataModel.h"

@interface Game : NSObject

//@property (nonatomic, assign) int matrix;                   // 矩阵阶数
@property (nonatomic,assign) int addScore;
@property (nonatomic,retain) DataModel *model;              // 数据
@property (nonatomic, retain) Algorithm *algorithm;         // 滑动算法

- (BOOL)top;            // 上滑
- (BOOL)bottom;         // 下滑
- (BOOL)left;           // 左滑
- (BOOL)right;          // 右滑

- (void)initGame;       // 初始化游戏数据

+ (Game *)getInstance;  // 单例

@end
